package com.ticket;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/*springboot的启动类*/
/*这是一个springboot的应用程序*/


@Configuration
@EnableAutoConfiguration
@MapperScan({"com.ticket.db.dao"})
@ComponentScan(basePackages= "com.ticket")
@SpringBootApplication
public class TicketApplication {
    private static Logger logger = LoggerFactory.getLogger(TicketApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(TicketApplication.class, args);
        logger.info(">>>>>>>>>>>>>>>>> Ticket start ok!!! ");
    }
}
